<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>对象的简写形式</title>
	</head>
	<body>
		<script type="text/javascript" >
			// let a = 1

			// let obj1 = {a:a} //可简写，形式为：let obj1 = {a}

			let obj2 = {a:'a'} //不可简写

		</script>
	</body>
</html>